﻿CREATE PROCEDURE [acms].[Post_GetAllFutureVersionsById]
	@Id int
AS
	SELECT *
	From Post_View
	Where Id = @Id
		and IsNull(EndDate, getUtcDate()) >= getUtcDate()
	Order By IsNull(StartDate, '3000/1/1')
RETURN 0;